package com.example.produces.mapper;

import com.example.produces.entity.Staff;
import com.example.produces.entity.ZhangMu;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository//数据访问层 (DAO 层 ) 的类标识为bean
public interface ZhangMuMapper {
    List<ZhangMu> findAll();
    void add(ZhangMu zhangMu);
    ZhangMu findOne(String surplus);
    void upDate(ZhangMu zhangMu);
    void delete(String surplus);
}
